function getRandom(max, min = 0) {
    return Math.floor(Math.random() * (max + 1 - min)) + min
}

function getPointDistance(p1, p2) {
    return Math.sqrt((p1.x - p2.x) ** 2 + (p1.y - p2.y) ** 2)
}

function getRandomStr() {
    const str = '0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    return str[getRandom(str.length - 1)]
}